
#ifndef _FindDirectionForm_H_
#define _FindDirectionForm_H_

#include <FBase.h>
#include <FUi.h>
#include "FNet.h"
#include "FText.h"
#include "../Utility/Downloader.h"
#include "../Utility/HuongDanDuongDiBangGiongNoi.h"
#include "FApp.h"

using namespace Osp::Base;
using namespace Osp::Ui;
using namespace Osp::Ui::Controls;
using namespace Osp::Net::Http;
using namespace Osp::Base::Collection;

class FindDirectionForm :
	public Osp::Ui::Controls::Form,
	public Osp::Ui::IActionEventListener,
	public Osp::Ui::IItemEventListener
{

// Construction
public:
	FindDirectionForm(void);
	virtual ~FindDirectionForm(void);
	bool Initialize();
	result OnInitializing(void);
	result OnTerminating(void);

// Implementation
protected:

// Generated call-back functions
public:
	void OnActionPerformed (const Osp::Ui::Control &source, int actionId);
	void OnItemStateChanged (const Osp::Ui::Control &source, int index, int itemId, Osp::Ui::ItemStatus status);
	//My code
	void SetFormId(int id){
		this->FormId = id;
	}
	static int GetFormId(){
		return FormId;
	}
	//Action id
private:
	const static int ID_SOFTKEY_OK = 1024;
	const static int ID_SOFTKEY_CANCEL = 1025;
	const static int ID_CHECKBUTTON_DIBO = 1026;
	const static int ID_CHECKBUTTON_XEMAY = 1027;
	const static int ID_CHECKBUTTON_DOCKETQUA = 1028;
	static int FormId;
	//variant

	Osp::Ui::Controls::EditField *pEditFieldViTriBatDau;
	Osp::Ui::Controls::EditField *pEditFieldViTriDen;

	Osp::Ui::Controls::CheckButton *pChkDiBo;
	Osp::Ui::Controls::CheckButton *pChkXeMay;
	Osp::Ui::Controls::CheckButton *pChkDocKetQua;
	Osp::Base::String strTransport;
	bool docKetQua;
	HuongDanDuongDiBangGiongNoi *pHuongDan;
	//function

	void TimDuongDi();
public:

private:
};

#endif
